package eu.otherweb.json;

import com.google.gson.annotations.SerializedName;

/**
 * @author johan
 * 
 * {
 *      "label" : "${page-nr} / ${page-total} - ${page-name}", 
 *      "bottom" : "10mm", 
 *      "right" : "10mm", 
 *      "font-size" : "10pt", 
 *      "font-family" : "HELVETICA"
 * },
 *
 */
public class Label {
    private String label;
    private Length bottom;
    private Length left;
    private Length right;
    private Length top;
    @SerializedName("font-size") private Length fontSize;
    @SerializedName("font-family") private String fontFamily;
    
    public String getLabel() {
        return label;
    }

    public Length getBottom() {
        return bottom;
    }

    public Length getLeft() {
        return left;
    }

    public Length getRight() {
        return right;
    }

    public Length getTop() {
        return top;
    }

    public Length getFontSize() {
        return fontSize;
    }

    public String getFontFamily() {
        return fontFamily;
    }
    

    
    @Override
    public String toString() {
        String r = "[ ";
        r = r.concat(label != null ? "label:" + label + " " : "");
        r = r.concat(bottom != null ? "bottom:" + bottom + " " : "");
        r = r.concat(left != null ? "left:" + left + " " : "");
        r = r.concat(right != null ? "right:" + right + " " : ""); 
        r = r.concat(top != null ? "top:" + top + " " : "");
        r = r.concat(fontSize != null ? "fontSize:" + fontSize + " " : "");
        r = r.concat(fontFamily != null ? "fontFamily:" + fontFamily + " " : "");        
        return (r + "]");
    }
    
}
